package com.example.onlinemonitoring.dao;

import com.example.onlinemonitoring.Util.tem.MyMapper;
import com.example.onlinemonitoring.model.Dlhlsensor;
import com.example.onlinemonitoring.model.common.dcurrentaddrconfig;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DlhlsensorMapper extends MyMapper<Dlhlsensor> {
    List<dcurrentaddrconfig> selectaddr(Dlhlsensor record);
    @Update({"update dlhlsensor","set lastdcurrentaddr = null","where stationid=#{stationid}","and devicegroup=#{devicegroup}","and lastdcurrentaddr = #{lastdcurrentaddr}"})
    int setlastdcurrentaddr(Integer stationid,Integer devicegroup,Integer lastdcurrentaddr);
}